package com.kingoe.mybatisdj.shard.mapper;

import com.kingoe.mybatisdj.shard.entity.LogDate;
import com.kingoe.mybatisdj.shard.interceptor.TableShard;
import com.kingoe.mybatisdj.shard.strategy.TableShardStrategyDate;

import java.util.List;

@TableShard(tableNamePrefix = "tb_log_date",shardStrategy = TableShardStrategyDate.class)
public interface LogDateMapper {
    /**
     * 查询列表-根据日期分表
     */
    List<LogDate> queryList();

    /**
     * 单插入-根据日期分表
     */
    void save(LogDate logDate);
}
